package com.sinosoft.vaccinetoai.common.mapper.extend;

import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * 扩展Mapper 根据IO查询
 * @author xzh
 * @date 2022-10-24 14:38
 * @since 5.0.0
 */
@RegisterMapper
public interface ExtendSelectByIOMapper<T, R> {

    /**
     * 根据IO查询
     * @param t io
     * @return {@link List }<{@link R }> 结果
     * @throws Exception 异常
     * @author xzh
     * @since 5.0.0
     */
    @SelectProvider(type = ExtendSelectByIOProvider.class, method = "dynamicSQL")
    List<R> selectByIO(T t) throws Exception;

}
